﻿
using LNet;
using OestsCommon.Model;
using OestsDataBase;
using OestsServer.Net;

namespace OestsServer.Handlers.UnityHandlers
{
    public class GetExamPaperHandler : HandlerBase<UnityClientChannel>
    {
        public override PacketKey PKey => PacketKey.GetExamPaperByStudent;

        public override void Execute(UnityClientChannel client, Request resquestPacket)
        {
            //int id = AdminDAL.GetPaperId();
            //获取试卷集中的试卷信息
            Paper P = StudentExamDAL.StudentGetPaper((int)client.ProjectType, client.User.DBid);
            ResponsePacket.DataObject = P;
            client.Send(ResponsePacket);
        }
    }
}
